<%-- 
    Document   : editVehicleType
    Created on : May 21, 2009, 12:39:46 PM
    Author     : Administrator
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<c:set var="title" value="Edit Vehicle Type" scope="page"/>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${title}</title>
    </head>
    <body>
        <h1>${title}</h1>
        <f:view>
            <!-- Show error messages -->
            <h:messages showSummary="true" showDetail="false" style="color: red; font-family: 'New Century Schoolbook', serif; font-style: oblique" id="errors" />

            <h:form id="vehicleType">
                <h:inputHidden value="#{VehicleTypeJSFManagedBean.vehicleType.id}" required="true" id="id"/>
                <h:inputHidden value="#{VehicleTypeJSFManagedBean.vehicleType.deleted}" required="true" id="deleted"/>
                <table>
                    <tr>
                        <td class="label">Code: </td>
                        <td class="required">*</td>
                        <td><h:inputText value="#{VehicleTypeJSFManagedBean.vehicleType.code}" required="true" id="code"/></td>
                    </tr>
                    <tr>
                        <td class="label">Description: </td>
                        <td class="required">*</td>
                        <td><h:inputText value="#{VehicleTypeJSFManagedBean.vehicleType.description}" required="true" id="description"/></td>
                    </tr>
                    <tr>
                        <td class="label">Seats: </td>
                        <td class="required">*</td>
                        <td><h:inputText value="#{VehicleTypeJSFManagedBean.vehicleType.seats}" required="true" id="seats"/></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                        <td><h:commandButton id="submit" value="Submit" action="#{VehicleTypeJSFManagedBean.saveVehicleType}"/></td>
                    </tr>
                </table>
            </h:form>
        </f:view>
    </body>
</html>